class MyError(StandardError):
    def __init__(self, error):
        StandardError.__init__(self, error)

def raise_error():
    return
    raise MyError('my error')

def final_error():
    try:
        #raise_error()
        pass
    finally:
        print 'finally'

try:
    raise_error()
except Exception,e:
    print 'raise', e
else:
    print 'no exception'

try:
    final_error()
except Exception, e:
    print 'final', e

print 'after exception'

